import request from "@/api/request"
import type { AxiosResponse } from "axios"

// get
export type GetWhiteAuditParams = {
  app_params: 'zxcvbn1'
}
export function getWhiteAudit(params: GetWhiteAuditParams):Promise<AxiosResponse>{
  return request('white/get_wd_review_white', params, 'post')
}

// create or update
export type SubmitWhiteAuditParams = {
  android_id: string,
  app_params: 'zxcvbn1',
  params_type: 1 | 2,
  model_name: string
}
export function submitWhiteAudit(params: SubmitWhiteAuditParams):Promise<AxiosResponse>{
  return request('white/update_wd_review_white', params, 'post')
}